<div class="fsh-pop">
    <div id="add_form" class="layui-form" lay-filter="add_form">
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label"><i>*</i>学校</label>
                <div class="layui-input-block">
                    <input id="_schoolName2" type="text" name="schoolName"  lay-verify="" placeholder="请选择"
                           class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
<!--                <label class="layui-form-label"><i>*</i>代码</label>-->
                <div class="layui-input-block">
                    <input id="_schoolCode2" type="hidden" name="schoolCode"  lay-verify=""
                           placeholder="请选择" class="layui-input">
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label"><i>*</i>班级名称</label>
                <div class="layui-input-block">
                    <input id="_squadName" type="text" name="schoolName" lay-verify="" readonly
                           placeholder="请输入关键字" class="layui-input"
                           value="<%=squad_name%>">
                </div>
            </div>
            <div class="layui-inline">
<!--                <label class="layui-form-label"><i>*</i>班级代码</label>-->
                <div class="layui-input-block">
                    <input id="_squadCode" type="hidden" name="squadCode" lay-verify="" readonly
                           placeholder="请输入关键字" class="layui-input">
                </div>
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label"><i>*</i>用户ID</label>
                <div class="layui-input-block">
                    <input type="text" name="toUserId" lay-verify="" placeholder="请输入关键字" class="layui-input">
                </div>
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <div class="layui-inline">
                <label class="layui-form-label"><i>*</i>类型</label>
                <div class="layui-input-block">
                    <select name="type" class="layui-input">
                        <option value="0">系统消息</option>
                        <option value="1">通知消息</option>
                    </select>
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label"><i>*</i>人群</label>
                <div class="layui-input-block">
                    <select name="userType">
                        <option value="0">全体</option>
                        <option value="3">高校教师</option>
                        <option value="4">学生</option>
                    </select>
                </div>
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label"><i>*</i>标题</label>
                <div class="layui-input-block">
                    <input type="text" name="title" lay-verify="require" placeholder="请输入关键字" class="layui-input" value="测试消息">
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label"><i>*</i>内容</label>
                <div class="layui-input-block">
                    <textarea name="content" class="layui-input" lay-verify="require" placeholder="请输入关键字"></textarea>
                </div>
            </div>
        </div>
    </div>

</div>
<style type="text/css">
</style>
<script type="text/javascript">
    layui.use(['table', 'laydate', 'form'], function () {
        var table = layui.table;
        var layDate = layui.laydate;
        var form = layui.form;

        var iniData = {title: "测试消息标题" + Math.random(), content: "短消息测试消息内容" + Math.random()};
        form.val("add_form", iniData);
        // 选择学校
        selectSchool('_schoolName2', '_schoolCode2');
        //选择班级
        selectSquad();
    });
</script>
